<?php
if (!defined('BASEPATH')) exit('No direct script access allowed');
/**
 * Category object
 */
class CategoryObject
{
	private $_id;
	private $_title;
	private $_productTypes;
	private $_order;
	private $_description;
	private $_image;
	
	function __construct($id = -1, $title = NULL, $productTypes = array(), $order = 0, $desc = NULL, $image = NULL)
	{
		$this->_id = $id;
		$this->_title = $title;
		$this->_productTypes = $productTypes;
		$this->_order = $order;
		$this->_description = quotes_to_entities($desc);
		$this->_image = quotes_to_entities($image);
	}
	
	public function getProductTypes()
	{
		return $this->_productTypes;
	}
	
	public function setProductTypes($types)
	{
		$this->_productTypes = $types;
	}
	
	public function getTitle()
	{
		return quotes_to_entities($this->_title);
	}
	
	public function getDescription(){
		return quotes_to_entities($this->_description);
	}
	
	public function setDescription($desc){
		$this->_description = quotes_to_entities($desc);
	}
	
	public function setTitle($title)
	{
		$this->_title = quotes_to_entities($title);
	}
	
	public function getId()
	{
		return $this->_id;
	}
	
	public function setId($id)
	{
		$this->_id = $id;
	}
	
	public function addProductType($productType)
	{
		$this->_productTypes[] = $productType;
	}
	
	public function getOrder()
	{
		return $this->_order;
	}
	
	public function setOrder($order)
	{
		$this->_order = $order;
	}
	
	public function getImage()
	{
		return quotes_to_entities($this->_image);
	}
	
	public function setImage($image)
	{
		$this->_image = quotes_to_entities($image);
	}
	
}



?>